<!-- views/MyView.vue -->
<template>
  <div class="main-container"></div>
</template>

<script setup>
// MyView组件的逻辑
</script>

<style scoped>
.main-container{
  height:100vh;
  background: linear-gradient(
    135deg,
    #f5f7fa 0%,     /* 柔和的云朵白 */
    #e3e9ff 25%,    /* 浅薰衣草灰 */
    #d8e4ff 50%,    /* 极淡的婴儿蓝 */
    #eceffd 75%,    /* 细腻的月光银 */
    #f5f7fa 100%    /* 与起始颜色呼应形成无缝循环 */
  );
  background-size: 100% 100%; /* 更紧凑的背景尺寸提升细腻度 */
  animation: gradient 5s ease infinite; /* 更缓和的动画节奏 */
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 竖屏模式下主容器上移 5vw */
@media (max-width: 768px) and (orientation: portrait) {
  .main-container {
    margin-bottom: 5vw; /* 向上移动 5vw */
    margin-left: 0px;
  }
}
</style>